/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* 开屏动画 */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.5s ease-in-out;
}

.splash-content {
  text-align: center;
  animation: slideUp 0.8s ease-out;
}

.logo-container {
  margin-bottom: 40px;
}

.logo-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.logo-icon i {
  font-size: 2.5rem;
  color: #fff;
}

.app-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.app-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
}

.loading-animation {
  margin-top: 40px;
}

.loading-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.loading-dots span {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: loadingDot 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

/* 主应用容器 */
.app-container {
  display: none;
  min-height: 100vh;
  background: #f8f9fa;
  padding-bottom: 80px;
}

.app-container.show {
  display: block;
}

.container {
  max-width: 420px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 页面切换 */
.page {
  display: none;
  min-height: 100vh;
  padding-top: 20px;
}

.page.active {
  display: block;
  animation: fadeInUp 0.3s ease-out;
}

/* 头部样式 */
.main-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 24px 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-greeting h2 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.user-greeting p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.level-badge {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 12px 16px;
  backdrop-filter: blur(10px);
}

.badge-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

.badge-icon i {
  color: #fff;
  font-size: 1rem;
}

.badge-info {
  display: flex;
  flex-direction: column;
}

.badge-level {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

.badge-points {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
}

.page-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
}

.page-header h1 {
  flex: 1;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
}

.back-btn {
  position: absolute;
  left: 0;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s;
}

.back-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-btn i {
  color: #667eea;
  font-size: 1.1rem;
}

/* 卡片样式 */
.overview-card, .chart-card, .form-card, .history-card, .recommendation-card, .tips-card, .profile-card, .achievements-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.card-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
}

.achievements .card-header h3 {
  color: #333 !important;
}

.card-header h3 i {
  color: white;
}

.card-header h3 .fa-trophy {
  color: #666 !important;
}

.card-date, .chart-period, .record-count, .total-calories {
  font-size: 0.9rem;
  color: #666 !important;
  background: #f8f9fa;
  padding: 4px 12px;
  border-radius: 12px;
}

/* 体重显示 */
.weight-display {
  text-align: center;
  margin: 20px 0;
}

.weight-value {
  font-size: 3rem;
  font-weight: 700;
  color: #667eea;
  line-height: 1;
}

.weight-unit {
  font-size: 1.2rem;
  color: #666;
  margin-left: 4px;
}

.weight-trend {
  text-align: center;
  margin-top: 12px;
}

.trend-text {
  font-size: 0.9rem;
  color: #666 !important;
  background: #f8f9fa;
  padding: 6px 16px;
  border-radius: 12px;
}

/* 图表 */
#weightChart {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  background: #f8f9fa;
}

/* 快速操作 */
.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.action-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.action-card.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.action-card.primary .action-content h4,
.action-card.primary .action-content p {
  color: #fff;
}

.action-icon {
  width: 48px;
  height: 48px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
}

.action-card.primary .action-icon {
  background: rgba(255, 255, 255, 0.2);
}

.action-icon i {
  font-size: 1.5rem;
  color: #667eea;
}

.action-card.primary .action-icon i {
  color: #fff;
}

.action-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.action-content p {
  font-size: 0.9rem;
  color: #666;
}

/* 全局表单样式 */
.form-group {
  margin-bottom: 20px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-wrapper {
  position: relative;
}

/* 全局输入框样式 */
.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
  width: 100%;
  padding: 16px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
  background: #ffffff;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* 全局下拉菜单样式 */
.input-wrapper select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 16px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 48px;
  cursor: pointer;
}

.input-wrapper select:focus {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23667eea' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

.input-wrapper select option {
  padding: 12px;
  font-weight: 500;
  color: #374151;
  background: #ffffff;
}

.input-wrapper select option:hover {
  background: #f8f9fa;
}

/* 输入框图标装饰 */
.input-wrapper.has-icon-left input,
.input-wrapper.has-icon-left select {
  padding-left: 48px;
}

.input-wrapper.has-icon-left::before {
  content: '';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #667eea;
  font-size: 1rem;
  z-index: 1;
  pointer-events: none;
}

/* 输入框单位显示 */
.input-wrapper.has-unit input,
.input-wrapper.has-unit select {
  padding-right: 48px;
}

.input-wrapper.has-unit::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.9rem;
  font-weight: 500;
  pointer-events: none;
}

/* 特定图标和单位 */
.input-wrapper.icon-weight::before {
  content: '\f496';
}

.input-wrapper.icon-time::before {
  content: '\f017';
}

.input-wrapper.icon-calories::before {
  content: '\f0e7';
}

.input-wrapper.icon-sport::before {
  content: '\f70c';
}

.input-wrapper.icon-user::before {
  content: '\f007';
}

.input-wrapper.icon-email::before {
  content: '\f0e0';
}

.input-wrapper.icon-phone::before {
  content: '\f095';
}

.input-wrapper.icon-distance::before {
  content: '\f3c5';
}

.input-wrapper.icon-intensity::before {
  content: '\f06d';
}

.input-wrapper.icon-count::before {
  content: '\f080';
}

.input-wrapper.unit-kg::after {
  content: 'kg';
}

.input-wrapper.unit-min::after {
  content: '分钟';
}

.input-wrapper.unit-cal::after {
  content: '千卡';
}

.input-wrapper.unit-km::after {
  content: 'km';
}

.input-wrapper.unit-count::after {
  content: '个';
}

.input-wrapper.unit-cm::after {
  content: 'cm';
}

.input-wrapper.unit-year::after {
  content: '岁';
}

/* 输入框状态样式 */
.input-wrapper input:invalid,
.input-wrapper select:invalid {
  border-color: #ef4444;
}

.input-wrapper input:invalid:focus,
.input-wrapper select:invalid:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.input-wrapper.success input,
.input-wrapper.success select {
  border-color: #10b981;
}

.input-wrapper.success input:focus,
.input-wrapper.success select:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* 输入框尺寸变体 */
.input-wrapper.small input,
.input-wrapper.small select {
  padding: 12px 16px;
  font-size: 0.9rem;
  color: #374151;
  background: #ffffff;
}

.input-wrapper.large input,
.input-wrapper.large select {
  padding: 20px 16px;
  font-size: 1.1rem;
  color: #374151;
  background: #ffffff;
}

/* 输入框组 */
.input-group {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.input-group .form-group {
  flex: 1;
  margin-bottom: 0;
}

.input-group .form-group:first-child {
  flex: 2;
}

/* 表单验证提示 */
.form-error {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-error::before {
  content: '\f071';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.7rem;
}

.form-success {
  color: #10b981;
  font-size: 0.8rem;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-success::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.7rem;
}

/* 表单帮助文本 */
.form-help {
  color: #6b7280;
  font-size: 0.8rem;
  margin-top: 4px;
  line-height: 1.4;
}

/* 禁用状态 */
.input-wrapper input:disabled,
.input-wrapper select:disabled {
  background: #f9fafb;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}

.input-wrapper input:disabled:focus,
.input-wrapper select:disabled:focus {
  border-color: #e9ecef;
  box-shadow: none;
  transform: none;
}

/* 只读状态 */
.input-wrapper input:read-only {
  background: #f9fafb;
  color: #374151;
}

/* 搜索框样式 */
.input-wrapper.search input {
  padding-left: 48px;
  padding-right: 48px;
}

.input-wrapper.search::before {
  content: '\f002';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 1rem;
  z-index: 1;
}

.input-wrapper.search::after {
  content: '\f00d';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}

.input-wrapper.search.has-value::after {
  opacity: 1;
}

/* 数字输入框样式 */
.input-wrapper input[type="number"] {
  -moz-appearance: textfield;
}

.input-wrapper input[type="number"]::-webkit-outer-spin-button,
.input-wrapper input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* 日期输入框样式 */
.input-wrapper input[type="date"] {
  position: relative;
}

.input-wrapper input[type="date"]::-webkit-calendar-picker-indicator {
  background: transparent;
  bottom: 0;
  color: transparent;
  cursor: pointer;
  height: auto;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: auto;
}

/* 响应式调整 */
@media (max-width: 480px) {
  .input-wrapper input,
  .input-wrapper select,
  .input-wrapper textarea {
    padding: 14px;
    font-size: 0.95rem;
    color: #374151;
    background: #ffffff;
  }
  
  .input-wrapper.has-icon-left input,
  .input-wrapper.has-icon-left select {
    padding-left: 44px;
  }
  
  .input-wrapper.has-unit input,
  .input-wrapper.has-unit select {
    padding-right: 44px;
  }
  
  .input-wrapper::before,
  .input-wrapper::after {
    font-size: 0.9rem;
  }
  
  .input-group {
    flex-direction: column;
    gap: 16px;
  }
  
  .input-group .form-group {
    flex: none;
  }
}

/* 暗色主题支持 */
@media (prefers-color-scheme: dark) {
  .input-wrapper input,
  .input-wrapper select,
  .input-wrapper textarea {
    background: #ffffff;
    border-color: #374151;
    color: #374151;
  }
  
  .input-wrapper input::placeholder,
  .input-wrapper textarea::placeholder {
    color: #6b7280;
  }
  
  .input-wrapper input:focus,
  .input-wrapper select:focus,
  .input-wrapper textarea:focus {
    border-color: #667eea;
    background: #ffffff;
  }
  
  .input-wrapper select option {
    background: #ffffff;
    color: #374151;
  }
  
  .input-wrapper input:disabled,
  .input-wrapper select:disabled {
    background: #f9fafb;
    color: #9ca3af;
  }
}

/* 动画 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loadingDot {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Toast消息样式 */
.toast-message {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 1rem;
  font-weight: 500;
  z-index: 3000;
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 90%;
  text-align: center;
  word-wrap: break-word;
}

.toast-message.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-message.hide {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
}

/* Toast响应式设计 */
@media (max-width: 480px) {
  .toast-message {
    bottom: 120px;
    padding: 10px 20px;
    font-size: 0.9rem;
    max-width: 95%;
  }
}

/* 响应式设计 */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  
  .main-header {
    padding: 20px 16px;
  }
  
  .user-greeting h2 {
    font-size: 1.3rem;
  }
  
  .weight-value {
    font-size: 2.5rem;
  }
  
  .stats-grid {
    gap: 8px;
  }
  
  .stat-card {
    padding: 12px 8px;
  }
  
  .nav-text {
    font-size: 0.7rem;
  }
  
  .modal-content {
    width: 95%;
  }
}

/* 按钮样式 */
.btn-primary, .btn-secondary {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: #f8f9fa;
  color: #666;
  border: 2px solid #e9ecef;
}

.btn-secondary:hover {
  background: #e9ecef;
  color: #333;
}

.btn-large {
  padding: 20px;
  font-size: 1.1rem;
}

/* 历史记录 */
.history-list {
  max-height: 300px;
  overflow-y: auto;
}

.history-item, .sport-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.history-item:last-child,
.sport-item:last-child {
  border-bottom: none;
}

.history-item span:first-child,
.sport-item span:first-child {
  color: #333;
  font-weight: 500;
}

.history-item span:last-child,
.sport-item span:last-child {
  color: #667eea;
  font-weight: 600;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 1rem;
}

/* 运动页面 */
.sport-summary {
  min-height: 100px;
}

.sport-actions {
  margin: 20px 0;
}

/* 饮食页面 */
.diet-content {
  line-height: 1.8;
  color: #333;
}

.diet-content b {
  color: #667eea;
  font-weight: 600;
}

.tips-content {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* 个人页面 */
.profile-info {
  display: flex;
  align-items: center;
}

.avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.avatar i {
  font-size: 1.8rem;
  color: #fff;
}

.user-details h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.user-details p {
  color: #666;
  font-size: 0.9rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-icon {
  margin-bottom: 8px;
}

.stat-icon i {
  font-size: 1.5rem;
  color: #667eea;
}

.stat-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

#profileLevel, #profilePoints, #recordDays {
  color: #333 !important;
}

#weeklyCalories, #avgCalories {
  color: white !important;
}

.stat-label {
  font-size: 0.8rem;
  color: #666;
}

.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.achievement-item {
  display: flex;
  align-items: center;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.achievement-item.unlocked {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-color: #667eea;
}

.achievement-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  background: #ddd;
  transition: all 0.3s ease;
}

.achievement-item.unlocked .achievement-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.achievement-icon i {
  font-size: 1.2rem;
  color: #666;
  transition: all 0.3s ease;
}

.achievement-item.unlocked .achievement-icon i {
  color: #fff;
}

.achievement-info {
  flex: 1;
}

.achievement-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.achievement-desc {
  font-size: 0.9rem;
  color: #666;
}

.achievement-reward {
  font-size: 0.8rem;
  color: #667eea;
  font-weight: 600;
  margin-top: 2px;
}

/* 成就进度条 */
.achievement-progress {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  padding: 15px;
  margin: 15px 0;
  color: white;
  text-align: center;
}

.achievement-progress h3 {
  margin: 0 0 10px 0;
  font-size: 1.1rem;
}

.achievement-progress .progress-bar {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  height: 8px;
  margin: 10px 0;
  overflow: hidden;
}

.achievement-progress .progress-fill {
  background: linear-gradient(90deg, #ffd700 0%, #ffed4e 100%);
  height: 100%;
  border-radius: 10px;
  transition: width 0.3s ease;
}

/* 成就解锁动画 */
@keyframes achievementUnlock {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.achievement-item.unlocked {
  animation: achievementUnlock 0.5s ease-out;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.achievement-item.unlocked .achievement-desc {
  color: rgba(255, 255, 255, 0.8);
}

.achievement-item.unlocked .achievement-reward {
  color: #ffd700;
}

/* 成就解锁时的闪光效果 */
@keyframes achievementGlow {
  0% {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  }
  50% {
    box-shadow: 0 4px 25px rgba(255, 215, 0, 0.6);
  }
  100% {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  }
}

.achievement-item.unlocked {
  animation: achievementUnlock 0.5s ease-out, achievementGlow 2s ease-in-out infinite;
}

/* 兑换页面样式 */
.exchange-header {
  margin-bottom: 24px;
}

.points-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 24px;
  color: white;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
  position: relative;
  overflow: hidden;
}

.points-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(180deg); }
}

.points-info {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.points-actions {
  margin-top: 18px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  transition: all 0.3s ease;
}

.btn-small:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.points-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.points-details h3 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 500;
}

.points-value {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 分类标签 */
.exchange-categories {
  margin-bottom: 24px;
}

.category-tabs {
  display: flex;
  background: white;
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  gap: 4px;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.85rem;
  color: #666;
  position: relative;
  overflow: hidden;
}

.tab-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.tab-item.active {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.tab-item.active::before {
  opacity: 1;
}

.tab-item > * {
  position: relative;
  z-index: 1;
}

.tab-item i {
  font-size: 1.3rem;
  margin-bottom: 6px;
  transition: transform 0.3s ease;
}

.tab-item:hover i {
  transform: scale(1.1);
}

.tab-item.active i {
  transform: scale(1.1);
}

/* 商品网格 */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 18px;
  padding: 0 4px;
}

.exchange-item {
  background: white;
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.exchange-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 16px;
}

.exchange-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.exchange-item:hover::before {
  opacity: 0.05;
}

.exchange-item.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.exchange-item.disabled:hover {
  transform: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.exchange-item.disabled::before {
  opacity: 0;
}

.item-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.exchange-item:hover .item-icon {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.item-name {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: #333;
  position: relative;
  z-index: 1;
}

.item-desc {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 12px;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.item-cost {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.item-cost.affordable {
  background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
  box-shadow: 0 2px 8px rgba(0, 184, 148, 0.3);
}

.exchange-item:hover .item-cost {
  transform: scale(1.05);
}

/* 响应式优化 */
@media (max-width: 480px) {
  .items-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
  }
  
  .exchange-item {
    padding: 16px 12px;
  }
  
  .item-icon {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
  
  .item-name {
    font-size: 0.9rem;
  }
  
  .item-desc {
    font-size: 0.75rem;
  }
  
  .category-tabs {
    padding: 4px;
  }
  
  .tab-item {
    padding: 12px 6px;
    font-size: 0.8rem;
  }
  
  .tab-item i {
    font-size: 1.2rem;
  }
  
  .points-card {
    padding: 20px;
  }
  
  .points-value {
    font-size: 2.2rem;
    color: white;
  }
}

/* 底部导航 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  border-radius: 8px;
  margin: 0 4px;
}

.nav-item.active {
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

.nav-item:not(.active) {
  color: #999;
}

.nav-item:hover {
  background: rgba(102, 126, 234, 0.05);
}

.nav-icon {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.nav-text {
  font-size: 0.75rem;
  font-weight: 500;
}

/* 弹窗样式 */
.modal {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.modal.show {
  display: flex !important;
  animation: fadeIn 0.3s ease-out;
}

/* 临时调试样式 - 让兑换弹窗更容易看到 */
#exchangeModal.show .modal-content {
  border: 3px solid #ff6b6b !important;
  background: #fff !important;
  box-shadow: 0 20px 60px rgba(255, 107, 107, 0.5) !important;
}

#exchangeModal.show .modal-header {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%) !important;
}

/* 确保确认按钮可以点击 */
#confirmExchangeBtn {
  cursor: pointer !important;
  pointer-events: auto !important;
  z-index: 10000 !important;
  position: relative !important;
  background: #ff6b6b !important;
  color: white !important;
  border: 3px solid #ff0000 !important;
  font-size: 18px !important;
  font-weight: bold !important;
  padding: 20px !important;
  margin: 10px !important;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.8) !important;
}

#confirmExchangeBtn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 30px rgba(255, 0, 0, 0.9) !important;
  background: #ff0000 !important;
}

#confirmExchangeBtn:active {
  transform: translateY(0) !important;
  background: #cc0000 !important;
}

.modal-content {
  background: #fff;
  border-radius: 20px;
  width: 90%;
  max-width: 320px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.modal-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.modal-header h3 i {
  color: #fff;
}

.modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  font-size: 1.2rem;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  display: flex;
  gap: 12px;
  padding: 20px 24px 24px;
  border-top: 1px solid #f0f0f0;
  background: #f8f9fa;
}

.modal-footer .btn-primary,
.modal-footer .btn-secondary {
  flex: 1;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
}

.modal-footer .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.modal-footer .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.modal-footer .btn-secondary {
  background: #fff;
  color: #666;
  border: 2px solid #e9ecef;
}

.modal-footer .btn-secondary:hover {
  background: #f8f9fa;
  color: #333;
  border-color: #667eea;
}

/* 响应式调整 */
@media (max-width: 480px) {
  .modal-content {
    width: 95%;
    max-width: 300px;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .modal-footer {
    padding: 16px 20px 20px;
  }
}

/* 兑换确认弹窗 */
.exchange-confirm {
  text-align: center;
}

.item-preview {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.item-info h4 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 1.2rem;
  font-weight: 600;
}

.item-info p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
}

.exchange-cost, .current-points {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}

.exchange-cost:last-child, .current-points:last-child {
  border-bottom: none;
}

.cost-value {
  color: #ff6b6b;
  font-weight: 700;
  font-size: 1.1rem;
}

.points-value {
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}

/* 领取记录样式 */
.exchange-history-item {
  display: flex;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.exchange-history-item:hover {
  background: rgba(102, 126, 234, 0.02);
  border-radius: 8px;
  padding-left: 8px;
  padding-right: 8px;
}

.exchange-history-item:last-child {
  border-bottom: none;
}

.history-item-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  font-size: 20px;
  color: white;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.history-item-info {
  flex: 1;
}

.history-item-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.history-item-date {
  font-size: 0.8rem;
  color: #666;
}

.history-item-cost {
  color: #ff6b6b;
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(255, 107, 107, 0.1);
  padding: 4px 8px;
  border-radius: 12px;
}

.empty-history {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.empty-history i {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.3;
  color: #ccc;
}

.empty-history p {
  font-size: 1rem;
  margin: 0;
  color: #999;
}

.history-stats {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-around;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-item {
  text-align: center;
}

.stat-item span:first-child {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 8px;
  font-weight: 500;
}

.stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
}

.stat-value.cost {
  color: #ff6b6b;
}

/* 饮食推荐页面样式 */
.diet-overview {
  margin-bottom: 24px;
}

.overview-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 24px;
  color: white;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
  position: relative;
  overflow: hidden;
}

.overview-card * {
  color: white;
}

.overview-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

.overview-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.overview-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.overview-info h3 {
  margin: 0 0 8px 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.overview-info p {
  margin: 0;
  opacity: 1;
  font-size: 0.95rem;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.overview-stats {
  display: flex;
  justify-content: space-around;
  position: relative;
  z-index: 1;
}

.overview-stats .stat-item {
  text-align: center;
}

.overview-stats .stat-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.overview-stats .stat-label {
  font-size: 0.85rem;
  opacity: 1;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 饮食标签页 */
.diet-tabs {
  margin-bottom: 24px;
}

.week-tabs {
  display: flex;
  background: white;
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  gap: 4px;
  overflow-x: auto;
}

.week-tabs .tab-item {
  flex: 1;
  min-width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.8rem;
  color: #666;
  position: relative;
  overflow: hidden;
}

.week-tabs .tab-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.week-tabs .tab-item.active {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.week-tabs .tab-item.active::before {
  opacity: 1;
}

.week-tabs .tab-item > * {
  position: relative;
  z-index: 1;
}

.day-icon {
  font-size: 1.2rem;
  margin-bottom: 4px;
  transition: transform 0.3s ease;
}

.week-tabs .tab-item:hover .day-icon {
  transform: scale(1.1);
}

.week-tabs .tab-item.active .day-icon {
  transform: scale(1.1);
}

.day-name {
  font-size: 0.75rem;
  font-weight: 500;
}

/* 饮食内容卡片 */
.diet-content {
  margin-bottom: 24px;
}

.diet-card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: opacity 0.3s ease;
}

.diet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.diet-day-info h3 {
  margin: 0 0 8px 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
}

.diet-day-info p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
}

.diet-calories {
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 16px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.calories-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.calories-unit {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* 餐食容器 */
.meals-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.meal-item {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
}

.meal-item:hover {
  background: #f0f2f5;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.meal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.meal-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.meal-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  flex: 1;
}

.meal-time {
  font-size: 0.8rem;
  color: #666;
  background: rgba(102, 126, 234, 0.1);
  padding: 4px 8px;
  border-radius: 12px;
}

.meal-content {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.food-item {
  background: white;
  padding: 8px 12px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.food-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.food-name {
  font-size: 0.9rem;
  color: #333;
  font-weight: 500;
}

/* 营养小贴士优化 */
.nutrition-tips .tips-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nutrition-tips .card-header {
  background: none;
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
  margin-bottom: 16px;
}

.nutrition-tips .card-header h3 {
  color: #333;
  font-size: 1.2rem;
}

.nutrition-tips .card-header h3 i {
  color: #667eea;
}

.tips-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  padding: 16px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 响应式优化 */
@media (max-width: 480px) {
  .overview-card {
    padding: 20px;
  }
  
  .overview-info h3 {
    font-size: 1.2rem;
  }
  
  .overview-stats .stat-value {
    font-size: 1.5rem;
    color: white;
  }
  
  .week-tabs {
    padding: 4px;
  }
  
  .week-tabs .tab-item {
    padding: 10px 6px;
    font-size: 0.75rem;
  }
  
  .day-icon {
    font-size: 1rem;
  }
  
  .diet-card {
    padding: 20px;
  }
  
  .diet-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .diet-calories {
    align-self: flex-end;
  }
  
  .meal-item {
    padding: 16px;
  }
  
  .meal-header {
    gap: 10px;
  }
  
  .meal-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .meal-header h4 {
    font-size: 1rem;
  }
  
  .food-item {
    padding: 6px 10px;
  }
  
  .food-name {
    font-size: 0.85rem;
  }
} 